-- GENERATED SPELL FOR [Phantasmal Wolf] --


function spell0_27644(pUnit, Event) --@Carnivorous Bite,n/a--
pUnit:FullCastSpellOnTarget(50729,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27644', 15000, 1)
end

function spell1_27644(pUnit, Event) --@Carnivorous Bite,n/a--
pUnit:FullCastSpellOnTarget(59269,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27644', 15000, 1)
end

function spell2_27644(pUnit, Event) --@Furious Howl,n/a--
pUnit:FullCastSpellOnTarget(50728,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27644', 10339, 1)
end

function spell3_27644(pUnit, Event) --@Furious Howl,n/a--
pUnit:FullCastSpellOnTarget(59274,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27644', 10290, 1)
end

function Sorts_27644(pUnit, Event)
local choix_sorts_27644 = math.random(0, 3)
if choix_sorts_27644 == 0 then
pUnit:RegisterEvent('spell0_27644', 1, 1)
end
if choix_sorts_27644 == 1 then
pUnit:RegisterEvent('spell1_27644', 1, 1)
end
if choix_sorts_27644 == 2 then
pUnit:RegisterEvent('spell2_27644', 1, 1)
end
if choix_sorts_27644 == 3 then
pUnit:RegisterEvent('spell3_27644', 1, 1)
end
end

function mob27644_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27644', math.random(1500, 3000), 1)
end

function mob27644_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27644_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27644_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27644, 1, 'mob27644_Action')
RegisterUnitEvent(27644, 2, 'mob27644_Leave')
RegisterUnitEvent(27644, 3, 'mob27644_Kill')
RegisterUnitEvent(27644, 4, 'mob27644_Die')
